//面向对象编程
//订单对象模型
module.exports = function Order() {
	//定义变量
    var order_Id; //订单主键
	this.setorder_Id = function(x) {
		order_Id = x;
	}

	this.getorder_Id = function() {
		return order_Id;
	}
    
    var pdIdList; //购买产品的ID列表
	this.setpdIdList = function(x) {
		pdIdList = x;
	}

	this.getpdIdList = function() {
		return pdIdList;
	}

    var pdNumList; //购买产品的数量列表
	this.setpdNumList = function(x) {
		pdNumList = x;
	}

	this.getpdNumList = function() {
		return pdNumList;
	}

	var address_Id; //购买用户收货地址ID

	this.setaddress_Id = function(x) {
		address_Id = x;
	}

	this.getaddress_Id = function() {
		return address_Id;
	}

	var customer_Id; //购买用户ID

	this.setcustomer_Id = function(x) {
		customer_Id = x;
	}

	this.getcustomer_Id = function() {
		return customer_Id;
	}

	var message; //买家留言

	this.setmessage = function(x) {
		message = x;
	}

	this.getmessage = function() {
		return message;
	}

	var express_fee; //快递费

	this.setexpress_fee = function(x) {
		express_fee = x;
	}

	this.getexpress_fee = function() {
		return express_fee;
	}

	var check_invoices; //是否开具发票

	this.setcheck_invoices = function(x) {
		check_invoices = x;
	}

	this.getcheck_invoices = function() {
		return check_invoices;
	}

	var pay_type;  //支付方式

	this.setpay_type = function(x) {
		pay_type = x;
	}

	this.getpay_type = function() {
		return pay_type;
	}

	var totalprice; //订单总额
	this.settotalprice = function(x) {
		totalprice = x;
	}

	this.gettotalprice = function() {
		return totalprice;
	}
}